package com.hll.erp.util;

import org.apache.shiro.crypto.hash.SimpleHash;

/**
 * @author Mr.Hu
 * @since 2021-07-04 22:27
 */
public class HashUtil {
  public static String encode(String algorithm, String password, Integer iteration) {
    return new SimpleHash(algorithm, password, null, iteration).toString();
  }
}
